package com.qf.usefull.dict;

import com.qf.usefull.dict.entity.Word;
import com.qf.usefull.dict.service.impl.MyDictImpl02;
import com.qf.usefull.dict.utils.DictionaryUtils;
import com.qf.usefull.dict.utils.WordUtils;

public class DictDemo {
    public static void main(String[] args) {

        Word[] wordArr = WordUtils.createWordArr(100000);
//        MyDictionary dict01 = new MyDictImpl01(10000);
//        DictionaryUtils.testAddSpeed(wordArr,dict01);
//        DictionaryUtils.testFindSpeed(wordArr,dict01);


//        Word[] wordArr1 = WordUtils.createWordArr(100000);
        MyDictImpl02 dict02 = new MyDictImpl02(100000);
        DictionaryUtils.testAddSpeed(wordArr,dict02);
        DictionaryUtils.testFindSpeed(wordArr,dict02);
//        dict02.addWord("9b35d2da-5fd0-4b62-b9e8-8d0ea3c32e42","1");
//        dict02.addWord("f89d90ae-3eae-4353-ba87-656810c64135","2");
    }


}
